<?php
/**
 * Created by PhpStorm.
 * User: 六花
 * Date: 2019/4/27
 * Time: 17:20
 */

namespace Home\Controller;

class LogisticsController extends BaseMallController {
    function _initialize()
    {
        parent::_initialize();
        $this->_user_id = session('visitor.user_id');
    }
    public function checkLogistics(){
        $_POST['order_no'] = '1919900149';
        if(!$_POST['order_no']){
            render('10001', '缺少参数');
        }
        $post_data = array(
            'trackNo' => $_POST['order_no']
        );
        $url = C('ERP_URL').'/api/express/ExpressOrder_Select'; #url 地址必须 http://xxxxx
        $res = sync_data($url,$post_data);
        var_dump($res);exit;
    }
}